<include file="Public:head" />
<style>
    .name_com{
        width: 200px;
        text-align: right;
    }
    .name_com span{
        line-height: 31px;
    }
    .width20{
        width: 370px;
    }
    textarea{
        height: 150px !important;
    }
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />

    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        功能按钮
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <div class="smart-widget-header row ">
                            <span class="smart-widget-option">
                                <span class="refresh-icon-animated">
                                    <i class="fa fa-spinner fa-spin" style="color:#fff"></i>
                                </span>
                                <a href="#" class="widget-toggle-hidden-option">
                                </a>
                                <a href="#" class="widget-collapse-option" data-toggle="collapse">
                                </a>
                                <a href="#" class="widget-refresh-option">
                                </a>
                            </span>
                        </div>
                        <div class="smart-widget-inner table-responsive">
                            <div class="smart-widget-hidden-section">
                                <ul class="widget-color-list clearfix">
                                    <li style="background-color:#20232b;" data-color="widget-dark"></li>
                                    <li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
                                    <li style="background-color:#23b7e5;" data-color="widget-blue"></li>
                                    <li style="background-color:#1fb5ac;" data-color="widget-green"></li>
                                    <li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
                                    <li style="background-color:#fbc852;" data-color="widget-orange"></li>
                                    <li style="background-color:#e36159;" data-color="widget-red"></li>
                                    <li style="background-color:#7266ba;" data-color="widget-purple"></li>
                                    <li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
                                    <li style="background-color:#fff;" data-color="reset"></li>
                                </ul>
                            </div>
                            <form class="form-horizontal form_button2" action="{:U('funmenuEdit')}" method="post" >
                            <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" >
                                <tr>
                                    <td class="name_com"><span>功能名称</span></td>
                                    <td><input type="text" class="form-control width20" value="{$funmenu_one['title']}" name="title"></td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>调用变量</span></td>
                                    <td><input type="text" class="form-control width20" value="{$funmenu_one['js_fun']}" name="js_fun"></td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>浮层类型</span></td>
                                    <td><input type="text" class="form-control width20" value="{$funmenu_one['js_fun_param']}" name="js_fun_param"></td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>跳转流程</span></td>
                                    <td>
                                        <select name="process_id" class="form-control width20">
                                            <option value="">请跳转流程</option>
                                            <foreach name="process_list" item="vo" >
                                                <if condition="$vo['process_id'] eq $funmenu_one['process_id']">
                                                    <option value="{$vo['process_id']}" selected="selected">{$vo['title']}</option>
                                                    <else/>
                                                    <option value="{$vo['process_id']}">{$vo['title']}</option>
                                                </if>
                                            </foreach>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>提交条件</span></td>
                                    <td>
                                        <textarea class="form-control" name="update_tag" style="width:370px;">{$funmenu_one['update_tag']}</textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>指定用户</span></td>
                                    <td>
                                        <foreach name="user_list" item="vo" >
                                            <in name="vo['id']" value="$funmenu_one['check_user']">
                                                <span style="width:130px;display: inline-block"><input type="checkbox" name="check_user[]" value="{$vo['id']}" checked /> {$vo['username']}</span>
                                                <else />
                                                <span style="width:130px;display: inline-block"><input type="checkbox" name="check_user[]" value="{$vo['id']}"/> {$vo['username']}</span>
                                            </in>
                                        </foreach>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>提交提示</span></td>
                                    <td>
                                        <input type="text" class="form-control width20" value="{$funmenu_one['tj_ts']}" name="tj_ts">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>操作类型</span></td>
                                    <td>
                                        <input type="text" class="form-control width20" value="{$funmenu_one['control_type']}" name="control_type">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>操作提示</span></td>
                                    <td>
                                        <textarea class="form-control" name="ts_message" style="width:370px;">{$funmenu_one['ts_message']}</textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>更新字段</span></td>
                                    <td>
                                        <textarea class="form-control" name="update_field" style="width:370px;">{$funmenu_one['update_field']}</textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name_com"><span>备注</span></td>
                                    <td>
                                        <textarea class="form-control" name="abs" style="width:370px;">{$funmenu_one['abs']}</textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <input type="hidden" name="id" value="{$funmenu_one['id']}">
                                        <button type="submit" class="action-button ajax-post" target-form="form_button2" >提交</button>
                                        <button type="button" class="action-button" onclick="window.open('{:U("Unit/funmenu")}','_self')"  >返回</button>
                                    </td>
                                </tr>

                            </table>
                            </form>
                        </div><!-- ./smart-widget-inner -->
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->
<include file="Public/base_fc" />
<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>
<block name="script">
    <script>
        $(function () {
            highlight_nav2('{:U("Unit/funmenu")}');
        })
    </script>
</block>


